package domain;

import org.springframework.context.annotation.Bean;

import java.util.*;
public class User {
    private int id;
    private String name;
    private char sex;
    private boolean status;
    private Date birthday;
    private Order order;
    private List<String> list;
    private Set<String> set;
    private String[] arr;
    private Map<String,Object> map;
    private Properties prop;

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public void setArr(String[] arr) {
        this.arr = arr;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }

    public void setProp(Properties prop) {
        this.prop = prop;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                ", status=" + status +
                ", birthday=" + birthday +
                ", order=" + order +
                ", list=" + list +
                ", set=" + set +
                ", arr=" + Arrays.toString(arr) +
                ", map=" + map +
                ", prop=" + prop +
                '}';
    }

    public User() {
    }

    public User(int id, String name, char sex, boolean status, Date birthday, Order order, List<String> list, Set<String> set, String[] arr, Map<String, Object> map, Properties prop) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.status = status;
        this.birthday = birthday;
        this.order = order;
        this.list = list;
        this.set = set;
        this.arr = arr;
        this.map = map;
        this.prop = prop;
    }

    public User(String name) {
        this.name = name;
    }
}
